package com.neuedu.api.collection;

/**
 * @author 金山
 * 项目：javase
 * site: https://blog.fulfill.com.cn
 * 描述
 * @data 2024/10/2816:23
 */
public class MyCollection<E,T> {


    private Object[] objects = new Object[16];
    private int size = 0;



    public boolean add(E obj){
        objects[size++] = obj;

        return true;
    }


    public T get(){
        return null;
    }


    public static void main(String[] args) {
        MyCollection<String,String> collection = new MyCollection();
        collection.add("abcdef");
        // collection.add(100);

        // collection.get



        MyCollection<Number,String> c = new MyCollection();
        c.add(3.014);
        c.add(100);
        // Integer   Double




    }

}
